package com.xh.bussiness.tools.controller;

import com.xh.bussiness.tiku.service.IQuestionTypeRelationService;
import com.xh.bussiness.tools.service.DataHandleService;
import com.xh.bussiness.tools.service.GetDataService;
import com.xh.core.annotation.ExcludeLoginTokenIntercept;
import com.xh.core.bean.AjaxResult;
import com.xh.core.constant.AjaxResultConstant;
import com.xh.core.controller.BaseController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
 * @Author daiwei
 * @Description
 * @Date 2019/2/27 11:03
 **/
@Api(tags = "题库-试题接口")
@RestController
@RequestMapping("/tools/dataHandle")
public class DataHandleController extends BaseController {

    @Autowired
    private DataHandleService dataHandleService;

    @ExcludeLoginTokenIntercept
    @RequestMapping("/question/handleSingleQuestionOptions")
    @ApiOperation(value = "同步角色", notes = "同步角色")
    public AjaxResult question() throws Exception {

        return new AjaxResult(AjaxResultConstant.Result.SUCCESS, dataHandleService.handleSingleQuestionOptions());
    }

}
